package com.zhanggm.springcloud.user.feign;

import com.zhanggm.springcloud.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-user",fallback = UserFeignServiceImp.class)
public interface UserFeignService {

    @RequestMapping("/user/getUserById")
    public User getUserById(@RequestParam("id") Integer id);

    @RequestMapping("/user/getUserNameByUser")
    public User getUserByUser(@RequestBody User user);
}
